/**
 * @format
 * @Author: TC
 * @Date: 2021-09-27 18:10:15
 * @Last Modified by: TC
 * @Last Modified time: 2025-05-05 01:31:30
 */

import { _decorator, Button, Component, EventTouch, Node, v3, view } from "cc";
import { app } from "../../FrameWork/App";
import { BaseScene } from "../../FrameWork/Module/Component/BaseScene";
import { gameDataMgr } from "../_Common/Manager/GameDataManager";
import { GAME_STATE } from "../Const/EnumConst";
import { EUIConst, GameUIConfig } from "../Const/UIConst";
import { GameTool } from "../Extend/GameTool";
const { ccclass, property } = _decorator;

/**
 * 主场景
 */
@ccclass("MainScene")
export class MainScene extends BaseScene {
    @property(Node)
    content: Node = null;

    protected onShow(): void {
        super.onShow();
        app.uiMgr.addUICfg(GameUIConfig);
        this._openMainUI();
    }

    protected registerEvent(): void {
        super.registerEvent();
    }

    /**
     * 打开主界面
     */
    private _openMainUI(): void {
        app.uiMgr.openUI(EUIConst.MainUI);
    }

    onDestroy() {
        super.onDestroy();
    }
}
